package com.smart.service;

import com.smart.dao.CartDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by khan on 15-2-14.
 */
@Service
public class CartService {
    @Autowired
    private CartDao cartDao;

    public boolean createCart(int userid){

        return cartDao.createCart(userid);
    }

    public long getExistUnFinishCartid(int userid){
        return  cartDao.getExistCartUnFinishedCart(userid);
    }

}
